package com.vehicle.result;


//关于异常的枚举信息

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseEnum {

    MOBILE_ERROR(301,"手机号格式错误"),
    STOCK_ERROR(300,"库存不足"),
    MOBILE_EXIST(303,"手机号已注册"),
    MOBILE_IS_NULL(302,"手机号不存在"),
    PASSWORD_ERROR(304,"密码错误"),
    TOKEN_ERROR(305,"token失效"),
    SMS_SEND_ERROR(306,"短信调用失败"),
    SMS_CODE_ERROR(307,"验证码错误"),
    USERNAME_ERROR(308,"用户名不存在"),
    USERNAME_EXIST(309,"用户名已存在");

    private Integer code;
    private String msg;




}
